package com.egao.common.module.AI.controller;

import com.egao.common.core.web.JsonResult;
import com.egao.common.module.AI.service.IAiService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 *  控制器
 *
 * @author ikun
 */
@Api(tags = "管理")
@RestController
@RequestMapping("${api}")
public class AiController {

    private IAiService aiService;

    @Autowired
    public AiController(IAiService aiService){
        this.aiService = aiService;
    }

    @ApiOperation("查询列表")
    @GetMapping("/Ai")
    public JsonResult Ai() {
        return aiService.ai();
    }
}